symbol-repeat-i number-of-times symbol fill-source pattern
Use this for adding ornamentation into a symbol-pattern. A symbol can be selected to repeat for a number-of-times. Instead of a direct repetition of the repeated symbol a fill-source can be identified to fill the repeated symbol.
(setq mel '(a b f g a f g h a b c))
(symbol-repeat-i 4 'a '(b a -b -c) mel)
--> (b a -b -c b f g b a -b -c f g h b a -b -c b c)
(symbol-repeat-i 4 'a nil mel)
--> (a a a a b f g a a a a f g h a a a a b c)
Combine with length-repeat within a neuron expression to match symbol ornamentation with the correct rhythmic subdivisions.